<form method="post"
      action="{% if form.instance.pk is None %} {% url 'add_station_datalog' station_pk=station.pk year=log_date.year month=log_date.month day=log_date.day is_auto=is_auto %} {% else %} {% url 'update_station_datalog' pk=form.instance.pk is_auto=is_auto %}{% endif %}"
      class="js-station-datalog-form">
    {% csrf_token %}
    <div class="modal-header">
        <h4 class="modal-title">{{ station }} - {{ log_date }} 日志</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
    </div>
    <div class="modal-body">
        {% if is_auto == 1 %}
            <p class="alert alert-info">确定台站正常无断记</p>
        {% endif %}
        {% include 'logs/includes/partial_schedule_form.html' %}
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary">确定</button>
    </div>
</form>